package com.learn.algorithm_1108;

/**
 * @author gatts, 2022/1/12 14:37
 */
public class Solution {

    public static void main(String[] args) {
        String address = "255.100.50.0";
        System.out.println(new Solution().defangIPaddr(address));;
    }

    public String defangIPaddr(String address) {
        return address.replace(".", "[.]");
    }

}
